package com.plant.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * RegisterCode entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "register_code", catalog = "mr_plants")
public class RegisterCode implements java.io.Serializable {

	// Fields

	private Integer id;
	private String tel;
	private Integer randnomNum;
	private Timestamp createTime;
	private Timestamp endTime;
	private Integer state;

	// Constructors

	/** default constructor */
	public RegisterCode() {
	}

	/** full constructor */
	public RegisterCode(String tel, Integer randnomNum, Timestamp createTime,
			Timestamp endTime, Integer state) {
		this.tel = tel;
		this.randnomNum = randnomNum;
		this.createTime = createTime;
		this.endTime = endTime;
		this.state = state;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "tel")
	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	@Column(name = "randnom_num")
	public Integer getRandnomNum() {
		return this.randnomNum;
	}

	public void setRandnomNum(Integer randnomNum) {
		this.randnomNum = randnomNum;
	}

	@Column(name = "create_time", length = 19)
	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	@Column(name = "end_time", length = 19)
	public Timestamp getEndTime() {
		return this.endTime;
	}

	public void setEndTime(Timestamp endTime) {
		this.endTime = endTime;
	}

	@Column(name = "state")
	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

}